package com.ljf.tijian.controller;

import com.ljf.tijian.dto.ApiResponse;
import com.ljf.tijian.service.SetmealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SetmealController {

    @Autowired
    SetmealService setmealService;

    @RequestMapping("/getSetmeals")
    public ApiResponse getSetmeals(){
        return setmealService.getAllSetmeals();
    }
}
